﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="AirtightnessAdd.aspx.cs" Inherits="ProductAirtightness_AirtightnessAdd"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        
    <script type="text/javascript">
            <!--
        document.onkeydown = function() {
            if (event.keyCode == 13 && event.srcElement.type == "text") {
                event.keyCode = 9;
            }
        }
            //-->
    </script>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style="text-align: center;">
                <br />
                <div style="clear: both;">
                <br />
            <br />
                <table style="width: 60%; border: solid 1px black; margin: 0 auto;">
                    <tr>
                        <td>                    
                    <p>
                        产品的类型：<asp:TextBox ID="TextBox2" Width="150px" runat="server" 
                            AutoPostBack="True" ontextchanged="TextBox2_TextChanged" TabIndex="1"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="*"
                            ValidationGroup="VGroup1"></asp:RequiredFieldValidator></p>
                    <p>
                        相应规格值：<asp:Label ID="Label1" Width="150px" runat="server"></asp:Label></p>
                    <p>
                        产品序列号：<asp:TextBox ID="TextBox1" Width="150px" runat="server" TabIndex="2"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="*"
                            ValidationGroup="VGroup1"></asp:RequiredFieldValidator></p>
                    <p>
                        气密测试值：<asp:TextBox ID="TextBox4" Width="150px" runat="server" TabIndex="3"></asp:TextBox><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4" ErrorMessage="*"
                            ValidationGroup="VGroup1"></asp:RequiredFieldValidator></p>
                    <p>
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提  交" 
                            ValidationGroup="VGroup1" TabIndex="4" />
                    </p>
                    </td>
                    </tr>
                </table>
                <br />
                </div>
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <hr />
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <div>
            <br />
                <table style="width: 60%; border: solid 1px black; margin: 0 auto;">
                    <tr>
                        <td>
                            查询序列号的气密录入记录：
                        </td>
                        <td>
                            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5"
                                ErrorMessage="*" ValidationGroup="VGroup2"></asp:RequiredFieldValidator>
                        </td>
                        <td>
                            <asp:Button ID="Button3" runat="server" Text="查 询" ValidationGroup="VGroup2" OnClick="Button3_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:GridView ID="GridView1" runat="server" BackColor="White" Width="100%" BorderColor="White"
                                BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None"
                                AutoGenerateColumns="False" DataKeyNames="IsPass">
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <Columns>
                                    <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                                    <asp:BoundField DataField="RecordTime" HeaderText="录入时间" />
                                    <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                    <asp:BoundField DataField="UserID" HeaderText="操作员" />
                                    <asp:BoundField DataField="TestValue" HeaderText="测试值" />
                                    <asp:BoundField DataField="IsPass" HeaderText="是否合格" />
                                </Columns>
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </div>
            <br />
            <br />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
